package com.corpcredit.dao.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
 * Spring application context for TkBpm app.
 */
public class ApplicationContextFactory {
    
	private static String[] ConfigPath = new String[] {
            "classpath:/applicationContext-dao.xml",
            "classpath:/applicationContext.xml",
            "classpath:/applicationContext-service.xml"
        };
	
    private static ApplicationContext ctx = new ClassPathXmlApplicationContext( ConfigPath );

    /**
     * Return the spring application context for TkBpm app.
     * 
     * @return The spring applcation context
     */
    public static ApplicationContext getApplicationContext() {
        return ctx;
    }
}
